package net.qhzw.geologr5.gis.auth.event;

import org.springframework.context.ApplicationListener;
import org.springframework.security.authentication.event.AuthenticationFailureBadCredentialsEvent;

public class AuthenticationFailureListener implements ApplicationListener<AuthenticationFailureBadCredentialsEvent> {


    @Override
    public void onApplicationEvent(AuthenticationFailureBadCredentialsEvent authenticationFailureBadCredentialsEvent) {

        String account = authenticationFailureBadCredentialsEvent.getAuthentication().getPrincipal().toString();


        System.out.println("account： " + account);
    }
}
